import request from '@/utils/request'

// 查询产能与开工情况列表
export function listCapacityOperating(query) {
  return request({
    url: '/pms/capacityOperating/list',
    method: 'get',
    params: query
  })
}

// 查询产能与开工情况详细
export function getCapacityOperating(id) {
  return request({
    url: '/pms/capacityOperating/' + id,
    method: 'get'
  })
}

// 新增产能与开工情况
export function addCapacityOperating(data) {
  return request({
    url: '/pms/capacityOperating',
    method: 'post',
    data: data
  })
}

// 修改产能与开工情况
export function updateCapacityOperating(data) {
  return request({
    url: '/pms/capacityOperating',
    method: 'put',
    data: data
  })
}

// 删除产能与开工情况
export function delCapacityOperating(id) {
  return request({
    url: '/pms/capacityOperating/' + id,
    method: 'delete'
  })
}
